<?php
/**
 * Free Uch Index
 *
 * @category   FreeUch
 * @copyright  Copyright 2009 lordharrdlee(http://www.lordharrdlee.cn)
 * @author     lordharrdlee<lordharrdlee@gmail.com>
 * @version    $Id: pmajax.php 3 2009-10-27 09:54:35Z lordharrdlee $
 */

include_once './common.php';

define ( 'DS', DIRECTORY_SEPARATOR );
define ( 'FREEUCH_ROOT' , S_ROOT . 'freeuch' . DS );

set_include_path(PATH_SEPARATOR . FREEUCH_ROOT . 'application' . DS . PATH_SEPARATOR . FREEUCH_ROOT . 'lib' . DS);

//Zend_Loader
include_once 'Zend' . DS . 'Loader' . DS . 'Autoloader.php';
Zend_Loader_Autoloader::getInstance()->setFallbackAutoloader(true);

try {
    include_once FREEUCH_ROOT . 'application' . DS . 'bootstrap.php';
} catch (Exception $e) {
    showmessage($e->getMessage());
}